/**
 * 
 */
package org.iridium.allcomments.dto;

import java.util.Date;
import java.util.HashSet;

/**
 * @author iridium
 * 
 */
public class CommentDTO {
	/**
	 * length: 0 ~ 100
	 */
	private String commentId;

	/**
	 * length: 0 ~ 100
	 */
	private String preCommentId;

	/**
	 * length: 0 ~ 50
	 */
	private long userId;

	private Date postTime;
	
	/**
	 * length: 0 ~ 500
	 */
	private String url;

	/**
	 * length: 0 ~ 2000
	 */
	private String Content;

	private String ip;

	private HashSet<String> tags;

	public CommentDTO() {
	}
	public CommentDTO(String commentId, String preCommentId, long userId,
			Date postTime, String content, String ip, HashSet<String> tags) {
		super();
		this.commentId = commentId;
		this.preCommentId = preCommentId;
		this.userId = userId;
		this.postTime = postTime;
		Content = content;
		this.ip = ip;
		this.tags = tags;
	}

	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}

	public String getPreCommentId() {
		return preCommentId;
	}

	public void setPreCommentId(String preCommentId) {
		this.preCommentId = preCommentId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public HashSet<String> getTags() {
		return tags;
	}

	public void setTags(HashSet<String> tags) {
		this.tags = tags;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
